package cn.edu.scau.cmi.dengzhengyu.comprehensiveExperiment;



import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.TextField;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.util.Callback;
import cn.edu.scau.cmi.dengzhengyu.*;
import cn.edu.scau.cmi.dengzhengyu.singleton.Chairman;

public class SingletonUIController {

    @FXML
    private TableColumn<Chairman, String> TableColumn1;

    @FXML
    private Button Btn1;

    @FXML
    private TextField Text1;

    @FXML
    private TableView<Chairman> TableView1;
    
    public void onBtn1Clicked()
    {

    	TableColumn1.setCellValueFactory(new PropertyValueFactory<Chairman, String>("name"));
    	TableView1.getItems().add(Chairman.getInstance(Text1.getText()));

    }

}